import { createRouter, createWebHistory } from 'vue-router'

const Home = () => import('../views/HomeView.vue')
const Login = () => import('../views/LoginView.vue')
const Aout = () => import('@/views/Aout.vue')
const Notfound = () => import('../views/Notfound.vue')
const routes = [
  {
    path: '/',
    component: Home
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/about',
    component: Aout
  },
  {
    path: "/:pathMatch(.*)*",
    component: Notfound
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})



export default router 